import 'package:jyofservice/bean/check_list_entity.dart';

checkListEntityFromJson(CheckListEntity data, Map<String, dynamic> json) {
	if (json['yb_id'] != null) {
		data.ybId = json['yb_id'] is String
				? double.tryParse(json['yb_id'])
				: json['yb_id'].toDouble();
	}
	if (json['client_code'] != null) {
		data.clientCode = json['client_code'].toString();
	}
	if (json['ybbm'] != null) {
		data.ybbm = json['ybbm'].toString();
	}
	if (json['copy_year'] != null) {
		data.copyYear = json['copy_year'];
	}
	if (json['yhkh'] != null) {
		data.yhkh = json['yhkh'].toString();
	}
	if (json['lxr'] != null) {
		data.lxr = json['lxr'].toString();
	}
	if (json['lxdh'] != null) {
		data.lxdh = json['lxdh'].toString();
	}
	if (json['dwdh'] != null) {
		data.dwdh = json['dwdh'].toString();
	}
	if (json['sfz'] != null) {
		data.sfz = json['sfz'].toString();
	}
	if (json['sfmj'] != null) {
		data.sfmj = json['sfmj'] is String
				? double.tryParse(json['sfmj'])
				: json['sfmj'].toDouble();
	}
	if (json['cnmj'] != null) {
		data.cnmj = json['cnmj'] is String
				? double.tryParse(json['cnmj'])
				: json['cnmj'].toDouble();
	}
	if (json['jzmj'] != null) {
		data.jzmj = json['jzmj'] is String
				? double.tryParse(json['jzmj'])
				: json['jzmj'].toDouble();
	}
	if (json['symj'] != null) {
		data.symj = json['symj'] is String
				? double.tryParse(json['symj'])
				: json['symj'].toDouble();
	}
	if (json['cg'] != null) {
		data.cg = json['cg'] is String
				? double.tryParse(json['cg'])
				: json['cg'].toDouble();
	}
	if (json['cgmj'] != null) {
		data.cgmj = json['cgmj'] is String
				? double.tryParse(json['cgmj'])
				: json['cgmj'].toDouble();
	}
	if (json['azzt'] != null) {
		data.azzt = json['azzt'].toString();
	}
	if (json['ynzt'] != null) {
		data.ynzt = json['ynzt'].toString();
	}
	if (json['qnlx'] != null) {
		data.qnlx = json['qnlx'].toString();
	}
	if (json['azfs'] != null) {
		data.azfs = json['azfs'].toString();
	}
	if (json['yhlb'] != null) {
		data.yhlb = json['yhlb'].toString();
	}
	if (json['gryq'] != null) {
		data.gryq = json['gryq'].toString();
	}
	if (json['bjh'] != null) {
		data.bjh = json['bjh'].toString();
	}
	if (json['sffs'] != null) {
		data.sffs = json['sffs'].toString();
	}
	if (json['yhpj'] != null) {
		data.yhpj = json['yhpj'].toString();
	}
	if (json['xq_code'] != null) {
		data.xqCode = json['xq_code'].toString();
	}
	if (json['lh'] != null) {
		data.lh = json['lh'].toString();
	}
	if (json['dy'] != null) {
		data.dy = json['dy'].toString();
	}
	if (json['lc'] != null) {
		data.lc = json['lc'] is String
				? double.tryParse(json['lc'])
				: json['lc'].toDouble();
	}
	if (json['mph'] != null) {
		data.mph = json['mph'].toString();
	}
	if (json['yhmc'] != null) {
		data.yhmc = json['yhmc'].toString();
	}
	if (json['rwdt'] != null) {
		data.rwdt = json['rwdt'].toString();
	}
	if (json['ksgndt'] != null) {
		data.ksgndt = json['ksgndt'].toString();
	}
	if (json['htqddt'] != null) {
		data.htqddt = json['htqddt'].toString();
	}
	if (json['htbh'] != null) {
		data.htbh = json['htbh'].toString();
	}
	if (json['is_bankpay'] != null) {
		data.isBankpay = json['is_bankpay'] is String
				? double.tryParse(json['is_bankpay'])
				: json['is_bankpay'].toDouble();
	}
	if (json['is_jsznj'] != null) {
		data.isJsznj = json['is_jsznj'] is String
				? double.tryParse(json['is_jsznj'])
				: json['is_jsznj'].toDouble();
	}
	if (json['scale'] != null) {
		data.scale = json['scale'] is String
				? double.tryParse(json['scale'])
				: json['scale'].toDouble();
	}
	if (json['bz'] != null) {
		data.bz = json['bz'].toString();
	}
	if (json['yj_bz'] != null) {
		data.yjBz = json['yj_bz'].toString();
	}
	if (json['createdate'] != null) {
		data.createdate = json['createdate'].toString();
	}
	if (json['updatedate'] != null) {
		data.updatedate = json['updatedate'];
	}
	if (json['createuserid'] != null) {
		data.createuserid = json['createuserid'];
	}
	if (json['updateuserid'] != null) {
		data.updateuserid = json['updateuserid'];
	}
	if (json['tz_dm'] != null) {
		data.tzDm = json['tz_dm'].toString();
	}
	if (json['isxh'] != null) {
		data.isxh = json['isxh'] is String
				? double.tryParse(json['isxh'])
				: json['isxh'].toDouble();
	}
	if (json['sfmj_gl'] != null) {
		data.sfmjGl = json['sfmj_gl'] is String
				? double.tryParse(json['sfmj_gl'])
				: json['sfmj_gl'].toDouble();
	}
	if (json['isgn_gl'] != null) {
		data.isgnGl = json['isgn_gl'].toString();
	}
	if (json['is_vip'] != null) {
		data.isvip = json['is_vip'].toString();
	}
	if (json['jfzt'] != null) {
		data.jfzt = json['jfzt'].toString();
	}
	if (json['jczt'] != null) {
		data.jczt = json['jczt'].toString();
	}
	if (json['jc_id'] != null) {
		data.jc_id = json['jc_id'] is String
				? int.tryParse(json['jc_id'])
				: json['jc_id'].toInt();
	}
	return data;
}

Map<String, dynamic> checkListEntityToJson(CheckListEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['yb_id'] = entity.ybId;
	data['client_code'] = entity.clientCode;
	data['ybbm'] = entity.ybbm;
	data['copy_year'] = entity.copyYear;
	data['yhkh'] = entity.yhkh;
	data['lxr'] = entity.lxr;
	data['lxdh'] = entity.lxdh;
	data['dwdh'] = entity.dwdh;
	data['sfz'] = entity.sfz;
	data['sfmj'] = entity.sfmj;
	data['cnmj'] = entity.cnmj;
	data['jzmj'] = entity.jzmj;
	data['symj'] = entity.symj;
	data['cg'] = entity.cg;
	data['cgmj'] = entity.cgmj;
	data['azzt'] = entity.azzt;
	data['ynzt'] = entity.ynzt;
	data['qnlx'] = entity.qnlx;
	data['azfs'] = entity.azfs;
	data['yhlb'] = entity.yhlb;
	data['gryq'] = entity.gryq;
	data['bjh'] = entity.bjh;
	data['sffs'] = entity.sffs;
	data['yhpj'] = entity.yhpj;
	data['xq_code'] = entity.xqCode;
	data['lh'] = entity.lh;
	data['dy'] = entity.dy;
	data['lc'] = entity.lc;
	data['mph'] = entity.mph;
	data['yhmc'] = entity.yhmc;
	data['rwdt'] = entity.rwdt;
	data['ksgndt'] = entity.ksgndt;
	data['htqddt'] = entity.htqddt;
	data['htbh'] = entity.htbh;
	data['is_bankpay'] = entity.isBankpay;
	data['is_jsznj'] = entity.isJsznj;
	data['scale'] = entity.scale;
	data['bz'] = entity.bz;
	data['yj_bz'] = entity.yjBz;
	data['createdate'] = entity.createdate;
	data['updatedate'] = entity.updatedate;
	data['createuserid'] = entity.createuserid;
	data['updateuserid'] = entity.updateuserid;
	data['tz_dm'] = entity.tzDm;
	data['isxh'] = entity.isxh;
	data['sfmj_gl'] = entity.sfmjGl;
	data['isgn_gl'] = entity.isgnGl;
	data['is_vip'] = entity.isvip;
	data['jfzt'] = entity.jfzt;
	data['jczt'] = entity.jczt;
	data['jc_id'] = entity.jc_id;
	return data;
}